package com.jamiexu.lua.interpreter.token;

public class ASTToken {
    private ASTToken parent;
    private final StringBuilder childs = new StringBuilder();
    private final String data;

    public ASTToken(ASTToken parent, String data) {
        this.parent = parent;
        this.data = data;
    }

    public ASTToken getParent() {
        return parent;
    }

    public void setParent(ASTToken parent) {
        this.parent = parent;
    }

    public StringBuilder getChilds() {
        return childs;
    }

    public String getData() {
        return data;
    }
}
